package com.newland.starpos.partner.listen;

import com.newland.starpos.partner.bean.po.User;
import lombok.Getter;
import org.springframework.context.ApplicationContext;
import org.springframework.context.event.ApplicationContextEvent;

/**
 * Created by liuNW on 2018/9/29.
 */
@Getter
public class UserRegisterEvent extends ApplicationContextEvent {

    private User newUser;
    /**
     * Create a new ContextStartedEvent.
     *
     * @param source the {@code ApplicationContext} that the event is raised for
     *               (must not be {@code null})
     */
    public UserRegisterEvent(ApplicationContext source, User newUser) {
        super(source);
        this.newUser = newUser;
    }


}
